home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / macros / plain / contrib / samples / verbatim_2.tex < prev   
LaTeX Document  |  1989-11-22  |  1.2 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: LaTeX Document (document/latex).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert LaTeX Document (document/latex) magic Supported
100% dexvert Texinfo Document (document/texInfo) magic Supported
1% dexvert Corel 10 Texture (image/corel10Texture) ext Unsupported
1% dexvert Croteam texture file (image/croteamTextureFile) ext Unsupported
1% dexvert Text File (text/txt) fallback Supported
100% file TeX document text default
99% file LaTeX document, ASCII text default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime text/x-matlab default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 25 20 46 72 6f 6d 3a 20 | 54 69 6d 20 4d 6f 72 67 |% From: |Tim Morg|
|00000010| 61 6e 20 3c 6d 6f 72 67 | 61 6e 40 75 63 69 2d 69 |an <morg|an@uci-i|
|00000020| 63 73 61 3e 0a 25 20 50 | 72 6f 64 75 63 65 20 76 |csa>.% P|roduce v|
|00000030| 65 72 62 61 74 69 6d 20 | 6c 69 73 74 69 6e 67 73 |erbatim |listings|
|00000040| 20 6f 66 20 76 61 72 69 | 6f 75 73 20 73 6f 72 74 | of vari|ous sort|
|00000050| 73 0a 20 0a 5c 64 65 66 | 5c 75 6e 63 61 74 63 6f |s. .\def|\uncatco|
|00000060| 64 65 73 70 65 63 69 61 | 6c 73 7b 5c 64 65 66 5c |despecia|ls{\def\|
|00000070| 64 6f 23 23 31 7b 5c 63 | 61 74 63 6f 64 65 60 23 |do##1{\c|atcode`#|
|00000080| 23 31 3d 31 32 20 7d 20 | 5c 64 6f 73 70 65 63 69 |#1=12 } |\dospeci|
|00000090| 61 6c 73 7d 0a 20 0a 5c | 64 65 66 5c 73 65 74 75 |als}. .\|def\setu|
|000000a0| 70 76 65 72 62 61 74 69 | 6d 7b 25 0a 20 20 20 20 |pverbati|m{%. |
|000000b0| 5c 70 61 72 20 5c 74 74 | 20 5c 73 70 61 63 65 73 |\par \tt| \spaces|
|000000c0| 6b 69 70 3d 30 70 74 20 | 20 20 20 20 25 20 4d 61 |kip=0pt | % Ma|
|000000d0| 6b 65 20 73 75 72 65 20 | 77 65 20 67 65 74 20 66 |ke sure |we get f|
|000000e0| 69 78 65 64 20 74 74 20 | 73 70 61 63 69 6e 67 0a |ixed tt |spacing.|
|000000f0| 20 20 20 20 5c 6f 62 65 | 79 6c 69 6e 65 73 5c 75 | \obe|ylines\u|
|00000100| 6e 63 61 74 63 6f 64 65 | 73 70 65 63 69 61 6c 73 |ncatcode|specials|
|00000110| 5c 6f 62 65 79 73 70 61 | 63 65 73 5c 76 65 72 62 |\obeyspa|ces\verb|
|00000120| 61 74 69 6d 64 65 66 73 | 0a 7d 0a 20 0a 25 20 54 |atimdefs|.}. .% T|
|00000130| 68 69 73 20 6d 61 63 72 | 6f 20 74 75 72 6e 73 20 |his macr|o turns |
|00000140| 6f 6e 20 76 65 72 62 61 | 74 69 6d 20 6d 6f 64 65 |on verba|tim mode|
|00000150| 20 75 6e 74 69 6c 20 3f | 65 6e 64 76 65 72 62 61 | until ?|endverba|
|00000160| 74 69 6d 20 69 73 20 73 | 65 65 6e 2e 0a 5c 64 65 |tim is s|een..\de|
|00000170| 66 5c 76 65 72 62 61 74 | 69 6d 7b 5c 62 65 67 69 |f\verbat|im{\begi|
|00000180| 6e 67 72 6f 75 70 20 5c | 73 65 74 75 70 76 65 72 |ngroup \|setupver|
|00000190| 62 61 74 69 6d 0a 20 20 | 5c 70 61 72 73 6b 69 70 |batim. |\parskip|
|000001a0| 3d 30 70 74 20 70 6c 75 | 73 20 2e 30 35 5c 62 61 |=0pt plu|s .05\ba|
|000001b0| 73 65 6c 69 6e 65 73 6b | 69 70 20 5c 70 61 72 69 |selinesk|ip \pari|
|000001c0| 6e 64 65 6e 74 3d 30 70 | 74 0a 20 20 20 5c 63 61 |ndent=0p|t. \ca|
|000001d0| 74 63 6f 64 65 60 5c 20 | 3d 31 33 20 5c 63 61 74 |tcode`\ |=13 \cat|
|000001e0| 63 6f 64 65 60 5c 5e 5e | 4d 3d 31 33 20 5c 63 61 |code`\^^|M=13 \ca|
|000001f0| 74 63 6f 64 65 60 5c 3f | 3d 30 0a 20 20 20 5c 76 |tcode`\?|=0. \v|
|00000200| 65 72 62 61 74 69 6d 67 | 6f 62 62 6c 65 7d 0a 7b |erbatimg|obble}.{|
|00000210| 5c 63 61 74 63 6f 64 65 | 60 5c 5e 5e 4d 3d 31 33 |\catcode|`\^^M=13|
|00000220| 7b 5c 63 61 74 63 6f 64 | 65 60 5c 20 3d 31 33 5c |{\catcod|e`\ =13\|
|00000230| 67 64 65 66 5c 76 65 72 | 62 61 74 69 6d 64 65 66 |gdef\ver|batimdef|
|00000240| 73 7b 5c 64 65 66 5e 5e | 4d 7b 5c 20 5c 70 61 72 |s{\def^^|M{\ \par|
|00000250| 7d 5c 6c 65 74 20 3d 5c | 20 7d 7d 0a 20 20 5c 67 |}\let =\| }}. \g|
|00000260| 64 65 66 5c 76 65 72 62 | 61 74 69 6d 67 6f 62 62 |def\verb|atimgobb|
|00000270| 6c 65 23 31 5e 5e 4d 7b | 7d 7d 0a 20 0a 25 20 54 |le#1^^M{|}}. .% T|
|00000280| 68 69 73 20 64 65 66 69 | 6e 65 73 20 3f 65 6e 64 |his defi|nes ?end|
|00000290| 76 65 72 62 61 74 69 6d | 20 74 6f 20 65 6e 64 20 |verbatim| to end |
|000002a0| 74 68 65 20 67 72 6f 75 | 70 20 77 68 69 63 68 20 |the grou|p which |
|000002b0| 62 65 67 69 6e 73 20 77 | 69 74 68 20 5c 76 65 72 |begins w|ith \ver|
|000002c0| 62 61 74 69 6d 0a 5c 6c | 65 74 5c 65 6e 64 76 65 |batim.\l|et\endve|
|000002d0| 72 62 61 74 69 6d 3d 5c | 65 6e 64 67 72 6f 75 70 |rbatim=\|endgroup|
|000002e0| 0a 20 0a 25 20 49 6e 70 | 75 74 20 61 20 66 69 6c |. .% Inp|ut a fil|
|000002f0| 65 20 69 6e 20 76 65 72 | 62 61 74 69 6d 20 6d 6f |e in ver|batim mo|
|00000300| 64 65 2e 20 20 53 6f 6d | 65 74 69 6d 65 73 20 75 |de. Som|etimes u|
|00000310| 73 65 66 75 6c 20 66 6f | 72 20 69 6e 63 6c 75 64 |seful fo|r includ|
|00000320| 69 6e 67 0a 25 20 72 65 | 61 6c 2d 6c 69 66 65 20 |ing.% re|al-life |
|00000330| 65 78 61 6d 70 6c 65 73 | 20 69 6e 74 6f 20 61 20 |examples| into a |
|00000340| 70 61 70 65 72 2e 0a 5c | 64 65 66 5c 76 65 72 62 |paper..\|def\verb|
|00000350| 66 69 6c 65 23 31 7b 5c | 62 65 67 69 6e 67 72 6f |file#1{\|begingro|
|00000360| 75 70 5c 73 65 74 75 70 | 76 65 72 62 61 74 69 6d |up\setup|verbatim|
|00000370| 0a 20 20 20 20 5c 70 61 | 72 73 6b 69 70 3d 30 70 |. \pa|rskip=0p|
|00000380| 74 20 70 6c 75 73 20 2e | 30 35 5c 62 61 73 65 6c |t plus .|05\basel|
|00000390| 69 6e 65 73 6b 69 70 20 | 5c 70 61 72 69 6e 64 65 |ineskip |\parinde|
|000003a0| 6e 74 3d 30 70 74 0a 20 | 20 20 20 5c 69 6e 70 75 |nt=0pt. | \inpu|
|000003b0| 74 23 31 20 5c 65 6e 64 | 67 72 6f 75 70 0a 7d 0a |t#1 \end|group.}.|
|000003c0| 20 0a 25 20 54 68 69 73 | 20 69 73 20 74 68 65 20 | .% This| is the |
|000003d0| 73 61 6d 65 20 61 73 20 | 74 68 65 20 61 62 6f 76 |same as |the abov|
|000003e0| 65 2c 20 62 75 74 20 69 | 74 20 61 64 64 73 20 6c |e, but i|t adds l|
|000003f0| 69 6e 65 20 6e 75 6d 62 | 65 72 73 20 74 6f 20 65 |ine numb|ers to e|
|00000400| 61 63 68 0a 25 20 6c 69 | 6e 65 20 6f 66 20 74 68 |ach.% li|ne of th|
|00000410| 65 20 66 69 6c 65 20 70 | 72 69 6e 74 65 64 2e 0a |e file p|rinted..|
|00000420| 5c 6e 65 77 63 6f 75 6e | 74 5c 6c 69 6e 65 6e 6f |\newcoun|t\lineno|
|00000430| 0a 5c 64 65 66 5c 6c 69 | 73 74 69 6e 67 23 31 7b |.\def\li|sting#1{|
|00000440| 5c 6c 69 6e 65 6e 6f 3d | 30 5c 62 65 67 69 6e 67 |\lineno=|0\beging|
|00000450| 72 6f 75 70 5c 73 65 74 | 75 70 76 65 72 62 61 74 |roup\set|upverbat|
|00000460| 69 6d 0a 20 20 20 20 5c | 70 61 72 73 6b 69 70 3d |im. \|parskip=|
|00000470| 30 70 74 20 70 6c 75 73 | 20 2e 30 35 5c 62 61 73 |0pt plus| .05\bas|
|00000480| 65 6c 69 6e 65 73 6b 69 | 70 20 5c 70 61 72 69 6e |elineski|p \parin|
|00000490| 64 65 6e 74 3d 32 30 70 | 74 0a 20 20 20 20 5c 65 |dent=20p|t. \e|
|000004a0| 76 65 72 79 70 61 72 7b | 5c 61 64 76 61 6e 63 65 |verypar{|\advance|
|000004b0| 5c 6c 69 6e 65 6e 6f 20 | 62 79 20 31 20 5c 6c 6c |\lineno |by 1 \ll|
|000004c0| 61 70 7b 5c 74 68 65 5c | 6c 69 6e 65 6e 6f 5c 20 |ap{\the\|lineno\ |
|000004d0| 5c 20 7d 7d 5c 69 6e 70 | 75 74 23 31 0a 20 20 20 |\ }}\inp|ut#1. |
|000004e0| 20 5c 65 6e 64 67 72 6f | 75 70 0a 7d 0a | \endgro|up.}. |
+--------+-------------------------+-------------------------+--------+--------+